package edu.zju.gis.dbfg.server.model.workflow;

import com.google.gson.Gson;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class WorkFlowParam {
    String id;
    String name;
    String description;
    List<Connection> connections;
    List<NodeInfo> nodes;
    String style;

    public String getConnectionsAsJson() {
        Gson gson = new Gson();
        return gson.toJson(this.connections);
    }

    public String getNodesAsJson() {
        Gson gson = new Gson();
        return gson.toJson(this.nodes);
    }
}
